package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.Category;
import com.wenxixuanwu.fruitstore.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {

    @Select("select * from category")
    @Result(column = "c_id",property = "cId")
    @Result(column = "c_name",property = "cName")
    List<Category> select();

}
